import request from "@/api/request.js";
import qs from "qs";
export default {
  // 计算光伏
  calcLight(data) {
    return request({
      url: "/pc/calculation/calculationPhotovoltaic",
      method: "post",
      data,
    });
  },
  // 计算风能
  calcWind(data) {
    return request({
      url: "/pc/calculation/calculationWindPower",
      method: "post",
      data,
    });
  },
  // 计算最优解
  calcOptimalSolution(data) {
    return request({
      url: "/pc/calculation/outputOptimalSolution",
      method: "post",
      data,
    });
  },
  selectOptimalSolution(data) {
    return request({
      url: "/pc/calculation/selectOptimalSolution",
      method: "post",
      data,
    });
  },
  // echart
  getEnergyList(data) {
    return request({
      url: "/pc/energy/getEnergyList",
      method: "get",
      data,
    });
  },
  // echart
  selectOne(data) {
    return request({
      url: "/pc/portArea/selectOne",
      method: "get",
      data,
    });
  },
  getPortAreaList(data) {
    return request({
      url: "/pc/portArea/getPortAreaList",
      method: "get",
      data,
    });
  },

  getOptionalYears(data) {
    return request({
      url: "/pc/energy/getOptionalYears",
      method: "get",
      data,
    });
  },
};
